package com.java.process.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.java.common.utils.R;
import com.java.model.process.Process;
import com.java.vo.process.ApprovalVo;
import com.java.vo.process.ProcessFormVo;
import com.java.vo.process.ProcessQueryVo;
import com.java.vo.process.ProcessVo;
import org.springframework.stereotype.Service;

@Service
public interface ProcessService extends IService<Process> {
    IPage<ProcessVo> selectPage(Page<ProcessVo> pageParam, ProcessQueryVo processQueryVo);
    void deployByZip(String deployPath);

    void startUp(ProcessFormVo processFormVo);

    R findPending(Page<ProcessVo> pageParam);

    R show(Long id);

    R approve(ApprovalVo approvalVo);

    R findProcessed(Page<Process> pageParam);

    R findStarted(Page<ProcessVo> pageParam);
}
